package org.apache.log4j;

import waba.util.Hashtable;

public class Logger extends Category{	
	private static Hashtable map = new Hashtable(1);
	private Logger(String name){
		super ();
		this.name = name.substring(name.lastIndexOf('.')+1);
	}
	public static Logger getLogger(String name){
		if (!map.exists(name))
			map.put(name, new Logger(name));
		return (Logger)map.get(name);		
	}
	public static Logger getLogger(Class clazz){
		return getLogger(clazz.getName());
	}
}
